package guo.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import redis.clients.jedis.JedisPool;

@Service
public class RedisService {

    @Autowired
    private JedisPool jedisPool;


    public void setRedisString() {

        String s = jedisPool.getResource().set("k1", "v1");
        System.out.println("设置成功");
        System.out.println(s);

    }
}
